package org.test.testapi.demos.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "hello world";
    }

    @Autowired
    private EmailPropeties emailPropeties;

    @GetMapping("/email")
    public String email() {
        return emailPropeties.toString();
    }
}
